package homework.test01;

import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;

public class demo05 {
    public static void main(String[] args) {
        LinkedHashMap<Student,String> map = new LinkedHashMap<>();

        map.put(new Student("10001","小明",92),"山东省济南市");
        map.put(new Student("10002","小蓝",72),"山东省聊城市");
        map.put(new Student("10003","小黄",79),"山东省淄博市");
        map.put(new Student("10004","小红",95),"山东省泰安市");
        map.put(new Student("10005","张三",46),"山东省菏泽市");
        map.put(new Student("10005","李四",66),"山东省威海市");

        Set<Map.Entry<Student, String>> entries = map.entrySet();
        for (Map.Entry<Student, String> entry : entries) {
            System.out.println(entry.getKey()+"\t:::\t地址："+entry.getValue());
        }
    }
}
